<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Track extends Model
{
    protected $guarded=[];
    //获取足迹表足迹于商品的关联
    public function getGoods(){
        return $this->belongsTo(Goods::class,'goods_id','id');
    }
}
